package edu.zut.hb.ambition.recovery.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecoveryMapper;
import com.ruoyi.system.domain.Recovery;
import com.ruoyi.system.service.IRecoveryService;

@Service
public class RecoveryServiceImpl implements IRecoveryService
{
    @Autowired
    private RecoveryMapper recoveryMapper;

    @Override
    public Recovery selectRecoveryByHuishouid(Long huishouid)
    {
        return recoveryMapper.selectRecoveryByHuishouid(huishouid);
    }

    @Override
    public List<Recovery> selectRecoveryList(Recovery recovery)
    {
        return recoveryMapper.selectRecoveryList(recovery);
    }

    @Override
    public int insertRecovery(Recovery recovery)
    {
        return recoveryMapper.insertRecovery(recovery);
    }

    @Override
    public int updateRecovery(Recovery recovery)
    {
        return recoveryMapper.updateRecovery(recovery);
    }

    @Override
    public int deleteRecoveryByHuishouids(Long[] huishouids)
    {
        return recoveryMapper.deleteRecoveryByHuishouids(huishouids);
    }

    @Override
    public int deleteRecoveryByHuishouid(Long huishouid)
    {
        return recoveryMapper.deleteRecoveryByHuishouid(huishouid);
    }
}
